#define _CRT_SECURE_NO_WARNINGS 2

#include<iostream>
using namespace std;
class A
{
public:
	A();

	void foo()
	{
		delete this;
	}

	~A()
	{
		cout << "aaa" << endl;
		//delete this;
	}

	static int a;
private:
	static int b;
};

int A::a = 3;
int A::b = 4;

A::A()
{
	cout << "jdsfk" << endl;
}

int main()
{
	A* a_ = new A;
	a_->foo();
	cout << A::a << endl;
	A(*ptr)[3];
	return 0;
}